/***********************************************************************
 * POJO Class :  UrlResource.java
 * Author:  Bill Vison
 * Purpose: Defines the Class UrlResource
 ***********************************************************************/

package org.vsg.security.model.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "url_resource")
@PrimaryKeyJoinColumn(name="ID_RESOURCE")
public class UrlResource extends SysResource {


	
	private String context;
	 
	
	private String url;
	 
	@Column(name ="STATE")
	private short state;
	 
	
	public static final short MENUMARK = 10;
	
	public static final short TYPE = 2;
	 
	
	public UrlResource() {
		this.flagType = TYPE;
	}

	/**
	 * @param newContext
	 */	
	public void setContext(String newContext) {
		context = newContext;
	}
	
	public String getContext() {
		return context;
	}	
	
	/**
	 * @param newUrl
	 */	
	public void setUrl(String newUrl) {
		url = newUrl;
	}
	
	public String getUrl() {
		return url;
	}	
	
	/**
	 * @param newState
	 */	
	public void setState(short newState) {
		state = newState;
	}
	
	public short getState() {
		return state;
	}	
	
	/**
	 * @param newFlagType
	 */	
	public void setFlagType(short newFlagType) {
		flagType = newFlagType;
	}
	
	public short getFlagType() {
		return flagType;
	}	

}